#ifndef _BASIC_CFG_H__
#define _BASIC_CFG_H__


#include "../complib/libtsmp/include/tsmp_api.h"
#include "../complib/libtsninsight/include/tsninsight.h"


#include "../complib/cjson/cJSON.h"



#define INIT_CFG_FILE "./config/tsnlight_init_cfg.json"

#define L2SWITCH_EXE_PATH "../l2switch"
#define L2SWITCH_EXE_SHELL_FILENAME "startup_l2switch_file.sh"




void fwrite_file(u8 *const locla_mac,u64 hw_version,u8 *const name);
void riprt_n(char *str);


int basic_cfg(u8 *network_inetrface,int tsn_type, u32 sw_ver,u16 tsnlight_mid,node_mid_table* table, node_ver_table* version_table);

#endif



